package com.wd.tw.constants;

/**
 * @className: StatusEnum
 * @description: TODO 类描述
 * @author: liumingkun
 * @date: 2024/12/6
 **/
public enum StatusEnum {
    OPEN("開啓"),
    CLOSED("關閉");

    private String description;

    StatusEnum(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public static String getStatus(boolean isOpen) {
        return isOpen ? StatusEnum.OPEN.getDescription() : StatusEnum.CLOSED.getDescription();
    }
}